package com.itheima.service.impl;

import com.itheima.dao.User1Mapper;
import com.itheima.entity.User1;
import com.itheima.service.User1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class User1ServiceImpl implements User1Service {

    @Autowired
    User1Mapper user1Mapper;

    @Override
    public void save(User1 user1) {
        user1Mapper.save(user1);
    }

    @Override
    public void removeById(Long id) {
        user1Mapper.removeById(id);
    }

    @Override
    public void updateById(User1 user1) {
        user1Mapper.updateById(user1);
    }

    @Override
    public User1 getById(Long id) {
        return user1Mapper.getById(id);
    }

    @Override
    public List<User1> list(User1 user1) {
        return user1Mapper.list(user1);
    }

}
